

import engine.initLIB.load_dll as engineLib
import ctypes

import 物体.物体管理.engine_物体创建 as 物体创建






def f_取物体ID(obj):
	engineLib.flexCAPI.f_get模型ID.restype = ctypes.c_int32
	
	key = engineLib.flexCAPI.f_get模型ID(ctypes.c_int32(obj.m_物体ID))
	
	if key >= 0 :
		return obj.m_物体ID
	else:
		key = 物体创建.f_添加物体到引擎(obj)
		obj.m_物体ID = key
	
	return key
	





